/**
 * SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
 * SPDX-License-Identifier: Mulan PSL v2
 */
/**
 * Created by uedc on 2019/3/28.
 */

function getSessionStorage (args: string): string | null {
    return sessionStorage.getItem(args);
}

function setSessionStorage (key: string, val: string): void {
    return sessionStorage.setItem(key, val);
}


function removeSessionStorage (args: string): void {
    return sessionStorage.removeItem(args);
}

function clear (): void {
    return sessionStorage.clear();
}

function getLength (): number {
    return sessionStorage.length;
}

function getKey (args: number): string | null {
    return sessionStorage.key(args);
}

export {
    getSessionStorage,
    setSessionStorage,
    removeSessionStorage,
    clear,
    getLength,
    getKey
};
